Release 10.1A: OpenEdge Development:
Progress 4GL Handbook


Using queries to populate a browse

Another thing you observed in the chapters on the AppBuilder and the code it generates is that a query is the basis for the data definition for a browse object. You can’t populate a browse with the data from a FOR EACH block, only from a query. The browse gives you a viewport into the query. The repositioning you can do by selecting a record in the browse or scrolling through its contents reflects the repositioning that you can do programmatically through the query. In fact, selecting a row in a browse automatically repositions the query to that row, making it the current row in the buffers the query uses.

The chapters on graphical objects didn’t cover the browse control for this very reason: you need to know more about defining and using queries before you can use the browse. You’ll look at some of the many capabilities of the browse after you know how to define the queries they use.


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095